var p=Object.defineProperty;var m=(e,n,t)=>n in e?p(e,n,{enumerable:!0,configurable:!0,writable:!0,value:t}):e[n]=t;var l=(e,n,t)=>(m(e,typeof n!="symbol"?n+"":n,t),t);import{cW as a,C as d,cX as h,V as g,u as v,cY as f,w as _,cZ as C,t as y,v as x,n as O}from"./index-9e4bc268.js";const b=new Map([[a.css,`body {
  font-size: 18px;
  color: red;
}
`],[a.html,`<!DOCTYPE html>
<html lang="zh-Hans">
<head>
  <meta charset="UTF-8" />
  <title>HTML 5</title>
</head>

<body></body>
</html>
`],[a.javascript,`// main function
function main() {

}
`],[a.json,`{
  "name": "@smartcity/simple-ui",
  "author": "22",
  "version": "0.0.0
}`],[a.jsx,`// user node
const vnode = <div id={dynamicId}>hello, {userName}</div>;
`],[a.markdown,`# 标题

- 选项一
- 选项二
- ...
`],[a.python,`def print_hello_world(name):
print("Hello", name, "!")

# Calling the function
print_hello_world("Alice")
`],[a.sql,`-- query count of user
SELECT
  COUNT(*)
FROM sys_user
WHERE
  is_delete = 0
`],[a.typescript,`// main function
function main(): void {

}
`],[a.tsx,`// user node
const vnode = <div id={dynamicId}>hello, {userName}</div>;
`],[a.xml,`<package>
  <name>@smartcity/simple-ui</name>
  <author>22</author>
  <version>0.0.0</version>
</package>
`],[a.yaml,`package:
  name: @smartcity/simple-ui
  author: 22
  version: 0.0.0
`]]);var E=Object.defineProperty,L=Object.getOwnPropertyDescriptor,w=(e,n,t,o)=>{for(var s=o>1?void 0:o?L(n,t):n,i=e.length-1,r;i>=0;i--)(r=e[i])&&(s=(o?r(n,t,s):r(s))||s);return o&&s&&E(n,t,s),s};let u=class extends g{constructor(){super(...arguments);l(this,"languageOptions",v.map(n=>({label:f.get(n),value:n})));l(this,"themeOptions",_.map(n=>({label:C.get(n),value:n})));l(this,"options",{value:"",language:y,theme:x})}created(){this.handleLanguageChange()}handleLanguageChange(){this.options.value=b.get(this.options.language)??""}};u=w([d({components:{SCodeEditor:h}})],u);var D=function(){var e=this,n=e.$createElement,t=e._self._c||n;return t("s-flex",{attrs:{direction:"column",gap:"1em"}},[t("s-flex",{attrs:{gap:"1em"}},[t("s-select",{attrs:{placeholder:"请选择语言",options:e.languageOptions},on:{change:e.handleLanguageChange},model:{value:e.options.language,callback:function(o){e.$set(e.options,"language",o)},expression:"options.language"}}),t("s-select",{attrs:{placeholder:"请选择主题",options:e.themeOptions},on:{change:e.handleLanguageChange},model:{value:e.options.theme,callback:function(o){e.$set(e.options,"theme",o)},expression:"options.theme"}})],1),t("s-code-editor",{style:{height:"32em"},attrs:{language:e.options.language,theme:e.options.theme},model:{value:e.options.value,callback:function(o){e.$set(e.options,"value",o)},expression:"options.value"}})],1)},j=[];const c={};var F=O(u,D,j,!1,P,null,null,null);function P(e){for(let n in c)this[n]=c[n]}const I=function(){return F.exports}();export{I as default};